package com.learn.controller;

import com.learn.apis.PayFeignApi;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/08/01
 * @description ch08 链路跟踪
 */
@RestController
public class OrderMicrometerController {
    @Resource
    private PayFeignApi payFeignApi;
    @GetMapping("/order/micro/{id}")
    public String myMicrometer(@PathVariable("id") Integer id) {
        return payFeignApi.circuit(id);
    }
}
